﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

            /*定义一个员工类，存放用户的工号、姓名、性别、学历和部门信息；
            定义两个构造函数:
            一个是无参构造函数，学历默认为专科；
            一个有参构造函数，根据参数对类的属性进行初始化。。*/

namespace Demo
{
    class Worker
    {

        public string WorkerID { get; set; }
        public string WorkerName { get; set; }
        public string WorkerGender { get; set; }
        public string WorkerStudy { get; set; }
        public string WorkerSection { get; set; }

        public Worker(string workerID, string workerName,string wokerGender,string wokerStudy,string workerSection)
        {
            WorkerID = workerID;
            WorkerName = workerName;
            WorkerSection = workerSection;
            WorkerGender =wokerGender;
	WorkerStudy =workerStudy;
        }

        public Worker() { 
      
            WorkerStudy ="专科";

        }
    }
}
